.settings-page {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #64748b;
    font-size: 1rem;
}

.settings-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.settings-sidebar {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.settings-nav {
    padding: 1rem 0;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-tab:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.nav-tab.active {
    background: #3b82f6;
    color: white;
    border-right: 3px solid #1d4ed8;
}

.nav-icon {
    font-size: 1rem;
}

.nav-label {
    font-weight: 500;
}

.settings-content {
    padding: 2rem;
}

.settings-form {
    max-width: 600px;
}

.settings-section {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.theme-option {
    cursor: pointer;
}

.theme-option input[type="radio"] {
    display: none;
}

.theme-preview {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.theme-option input[type="radio"]:checked+.theme-preview {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
}

.theme-preview.light {
    background: #ffffff;
    color: #1e293b;
}

.theme-preview.dark {
    background: #1e293b;
    color: #ffffff;
}

.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .settings-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .settings-sidebar {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .settings-nav {
        display: flex;
        overflow-x: auto;
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav-tab {
        white-space: nowrap;
        padding: 0.5rem 1rem;
        border-radius: 6px;
    }

    .settings-content {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .theme-options {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }
}
